<?php 
//引进配置信息
include '../include/init.php';
//引入数据库配置信息
include '../include/mysql.config.php';
//引入公共函数
include '../include/common.fun.php';

islogin();
if($_GET){
	$delid=isset($_GET['del'])?$_GET['del']+0:0;
	$res=$db->delete('wd_link','link_id='.$delid);
	if($res){
		alert('删除成功','link_list.php');exit;
	}else{
		alert('删除失败');exit;
	}
}